import request from '@/utils/request'

export function getListPage(params) { // 获取收益列表
  return request({
    url: '/invoice/getApplyInvoice',
    method: 'get',
    params
  })
}

export function getStatisIncomeInfo(params) { // 获取详细收益
  return request({
    url: '/statistics/getStatisIncomeInfo',
    method: 'get',
    params
  })
}

export function changeInvoiceStatus(params) { // 修改发票状态
  return request({
    url: '/invoice/updateInvoice',
    method: 'post',
    params
  })
}

export function findByIdInvoiceInfo(params) { // 修改发票状态
  return request({
    url: '/invoice/findByIdInvoiceInfo',
    method: 'get',
    params
  })
}
export function sendOffInvoice(data) { // 发票寄出
  return request({
    url: '/invoice/updateInvoiceNo',
    method: 'post',
    data
  })
}
export function findDelivery(params) { // 发票物流
  return request({
    url: '/invoice/findDelivery',
    method: 'get',
    params
  })
}
